print (int(3.6))
# 3

print (int('3'))
# 3

print (int('3.6'))
# 报错: ValueError: invalid literal for int() with base 10: '3.6'